<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      xmlns:py="http://genshi.edgewall.org/"
      py:strip="">
      
  <span py:def="navigation(category)" py:if="chrome.nav[category]" class="nav">
    <py:for each="idx, item in  enumerate(chrome.nav[category])">
      <span class="${classes(first_last(idx, chrome.nav[category]), active=item.active)}">${item.label}</span>
      <py:if test="idx != len(chrome.nav[category])-1"> | </py:if>
    </py:for>
  </span>

<py:match path="body" once="true" buffer="false"> <body>
 
 <!-- bg layered effects -->
 <div class="bg_layer1">
 <!-- page -->
  <div id="page">

<!-- header/logo -->
   <div id="header">
     <a href="/"><img src="http://pygameweb.no-ip.org/media/images/logo_new_sm-trans.png" id="logo" alt="PyGame logo" /></a>
   </div>
   

 
  <div id="menubar_wrapper">
  <!-- rounded corners and background for menu -->
  <div id="menubar_l"></div>
  <div id="menubar">

 <!-- menu -->
   <div id="menu">
	 <a href="/news/">News</a>
     <a href="/download/">Download</a> 
     <a href="/projects/">Projects</a>
     <a href="/profiles/">Users</a>
     <a href="/snippets/">Snippets</a>
     <a href="/docs/">Docs</a> 
     <a href="/dev/" class="active">Code</a>
     <a href="/more/">More</a>
   </div>
   <div id="userbox">      
     
       <!--!><a href="/accounts/register/" class="">register</a> | 
       <a href="/accounts/login/?next=/" id="loginlink" class="">login</a>-->
       ${navigation('metanav')}
     
   </div>

  </div>   
  
  <div id="menubar_r"></div>
  </div>
  <!-- menubar_wrapper -->   
   
   <div id="content_wrapper">
 
  <!-- project of the (last) month and recent releases -->   
    <!--!>
    <div id="recent-releases-list">
    <h4>Project{{last_potm_w|pluralize}} of the Month<br/><a href="{{last_potm.get_absolute_url}}">{{last_potm.get_date}}</a></h4>
      {% if last_potm %}
      <ul>
       {% for winner in last_potm_w %}
        <li> 
		<table cellpadding="0" cellspacing="0" border="0">
		<tr><td><div class="thumb_shadow">
        <a href="{{winner.get_absolute_url}}">{{winner.get_screenshot.preview}}</a></div></td></tr></table>
        <a href="{{winner.get_absolute_url}}">{{winner}}</a></li>
       {% endfor %}
      </ul>
      {% else %}
      <em>not yet available</em>
      {% endif %}
    <h4>Recent Releases</h4>
      <ul id="recent-releases">
        {% for release in recent_releases %}
        <li>
        <table cellpadding="0" cellspacing="0" border="0">
		<tr><td><div class="thumb_shadow">
        <a href="{{release.get_absolute_url}}">{{release.project.get_screenshot.preview}}</a></div></td></tr></table>
        <a href="{{release.get_absolute_url}}">{{release}}</a>
        <br/>
        </li>
        {% endfor %}
      </ul>
    <span id="releases_feeds" class="feeds">
        syndicate: 
        <a class="feedlink" href="{% url rss_feeds "releases" %}">
            <img class="feedicon" src="{{MEDIA_URL}}images/rss_icon.png" alt="rss icon"/>
        </a>
        <a class="feedlink" href="{% url atom_feeds "releases" %}">
            <img class="feedicon" src="{{MEDIA_URL}}images/atom_icon.png" alt="atom icon"/>
        </a>
        {% subscription_link request "pr" %}
    </span>
    </div> -->
	
 <!-- submenu -->
   <div id="submenu">
     <form id="search" action="${href.search()}" method="get">
       <div py:if="'SEARCH_VIEW' in perm">
         <label for="proj-search">Search:</label>
         <input type="text" id="proj-search" name="q" size="18" accesskey="f" value="" />
         <input type="submit" value="${_('Search')}" class="button"/>
       </div>
     </form>
     ${navigation('mainnav')}
     <div style="clear: both"></div>
   </div>
   
 <!-- content -->
   <div id="content">
   <div id="main">
     <div id="ctxtnav" class="nav">
       <h2>Context Navigation</h2>
         <ul py:if="chrome.ctxtnav">
             <li py:for="i, elm in enumerate(chrome.ctxtnav)"
                 class="${classes(first_last(i, chrome.ctxtnav))}">$elm</li>
         </ul>
       <hr />
     </div>
     <div id="warning" py:if="chrome.warnings" class="system-message">
       <py:choose test="len(chrome.warnings)">
         <strong>Warning:</strong>
         <py:when test="1">${chrome.warnings[0]}</py:when>
         <py:otherwise><ul><li py:for="warning in chrome.warnings">$warning</li></ul></py:otherwise>
       </py:choose>
     </div>
     <div id="notice" py:if="chrome.notices" class="system-message">
       <py:choose test="len(chrome.notices)">
         <py:when test="1">${chrome.notices[0]}</py:when>
         <py:otherwise><ul><li py:for="notice in chrome.notices">$notice</li></ul></py:otherwise>
       </py:choose>
     </div>

     ${select('*|text()')}
     <div style="clear:both"></div>
   </div>   
   </div> 
   
    </div>    
  <!-- content_wrapper --> 
 
  <!-- footer -->
  <!--!>
  <div id="footer" xml:lang="en"><hr/>
    <p style="float:left">
      Powered by <a href="http://www.djangoproject.com/"><strong>Django</strong></a>
      and <a href="${href.about()}"><strong>Trac</strong></a>
    </p>
    <p class="right">${chrome.footer}</p>
  </div>
  <!-->
  <div id="footer">
  <p>
  <a href="http://www.djangoproject.com/"><img src="http://media.djangoproject.com/img/badges/djangosite80x15.gif" border="0" alt="A Django site." title="A Django site." /></a> by Julian Habrock, design by Devon Scott-Tunkin. 2009 
  </p>
  </div>
    
  </div>
 <!-- page -->
 
 </div>
 <!-- bg layered effects -->
 
 </body></py:match>
</html>
